<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\facade\Route;

Route::group('config', function () {
    Route::get('listConfigJson', 'Config/listConfigJson');//查询配置JSON格式
    Route::get('getFavicon', 'config/getFavicon');//查询-favicon
    Route::get('getDecoupageBoxAudio', 'config/getDecoupageBoxAudio');//查询-剪纸盒提示音
    Route::get('getDecoupageBoxErrorAudio', 'config/getDecoupageBoxErrorAudio');//查询-剪纸盒错误提示音
    Route::get('getMiniQrcode', 'config/getMiniQrcode');//小程序码
});
Route::group('oss', function () {
    Route::post('file', 'Oss/uploadFile');
    Route::post('video', 'Oss/uploadVideo');
    Route::get('sts', 'Oss/sts');
    Route::post('img', 'Oss/uploadImg');
    Route::post('audio', 'Oss/uploadAudio');
    Route::post('imgRichText', 'Oss/imgRichText');
    Route::post('download', 'Oss/download');
});

Route::group('print', function () {
    Route::get('articleWordsPrint', 'CommonPrint/articleWordsPrint');//文章单词打印
    Route::get('articlePrint', 'CommonPrint/articlePrint');//文章打印
    Route::get('skRecordPrint', 'CommonPrint/skRecordPrint');//上课记录打印
    Route::post('skRecordPrint', 'CommonPrint/skRecordPrint');//上课记录打印
    Route::get('sentenceQuestionPrint', 'CommonPrint/sentenceQuestionPrint');//句子上课记录打印
    Route::post('sentenceQuestionPrint', 'CommonPrint/sentenceQuestionPrint');//句子上课记录打印
});
Route::group('dictionary/wordResources', function () {
    Route::get('getVocal', 'WordResources/getVocal');//文章单词打印
});


//回调通知
Route::group('dictionary/wordResources', function () {
    Route::get('getVocal', 'WordResources/getVocal');//文章单词打印
});

Route::group('sms', function () {
    Route::post('send', 'Sms/send');
    Route::get('ceshi', 'Sms/ceshi');
});

//体验课支付回调
Route::group('core/coreTrialClassOrder', function () {
    Route::post('payCallWechat', 'core.CoreTrialClassOrder/payCallWechat');//微信支付回调
    Route::post('payCallAlipay', 'core.CoreTrialClassOrder/payCallAlipay');//支付宝支付回调
});

//机构充值学生课时回调
Route::group('core/coreAccountClassHour', function () {
    Route::post('payCallWechat', 'core.CoreAccountClassHour/payCallWechat');//微信支付回调
    Route::post('payCallAlipay', 'core.CoreAccountClassHour/payCallAlipay');//支付宝支付回调
});
